//author:jxx
//此处是对表单的方法，组件，权限操作按钮等进行任意扩展(方法扩展可参照SellOrder.js)
let extension = {
    components: {//动态扩充组件或组件路径
        //表单header、content、footer对应位置扩充的组件
        gridHeader:'',//{ template: "<div>扩展组xx件</div>" },
        gridBody: '',
        gridFooter: '',
        //弹出框(修改、编辑、查看)header、content、footer对应位置扩充的组件
        modelHeader: '',
        modelBody: '',
        modelFooter: ''
    },
    buttons: {view: [], box:[],  detail:[]},//扩展的按钮
    data() {
        return {
            searchBefore:[]
        }
    },
    methods: {//事件扩展

       onInit() {

       },
       searchBefore (param) { //查询ViewGird表数据前,param查询参数
       let params={page:1,rows:20,sort:"id",order:"desc",wheres:"[]"}
        this.http.post("api/Mall_good_distributor_system/GetPageGoodSystemData",params).then((res)=>{
            console.log( res,"searchBefore") 
            this.searchBefore=res.rows
       
        })
        return true;
      },
       searchAfter (result) { //查询ViewGird表数据后param查询参数,result回返查询的结果
        result=this.searchBefore
        console.log(result,"......")
        return true;
      },
    }
};
export default extension;